package com.xhwl.centiotdata.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xhwl.common.pojo.ResultJson;
import com.xhwl.common.pojo.cent.iot.OrgInfo;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestPart;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author pengjunming
 * @description
 * @date 2022/7/4 17:26
 */
@RestController
public interface IOrgInfoService extends IService<OrgInfo> {
    @PostMapping("/iot-service/getOrgInfoById")
    ResultJson<OrgInfo> getOrgInfoById(@RequestPart("id") Integer id, @RequestPart("productId") Integer productId);

    void deleteOrgInfo(Integer id, Integer productId);

    OrgInfo getOrgInfo(Integer id, Integer productId);

    void updateOrgInfo(OrgInfo orgInfo);

    List<OrgInfo> getList(Integer productId, List<Integer> ids);
}
